package org.bikelab.se3.job;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;

import org.bikelab.se3.util.DirExplorer;
import org.bikelab.se3.util.DirExplorer.Action;
import org.bikelab.se3.util.FileCompressUtil;
import org.bikelab.se3.util.TrigChunker;
import org.semanticweb.yars.nx.Node;

public class Trig2ChunkJob {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		final String inputDir = "/media/LG External HDD/lld.trig/unziped";
		final String outputDir = "/media/LG External HDD/lld.trig/chunked2";
		DirExplorer dExp = new DirExplorer();
		dExp.explore(inputDir, new Action() {
			@Override
			public void perform(File f) {
				System.out.println("Chunking ... " + f.getPath());
				try {
					TrigChunker.chunk(f.getPath(), outputDir);
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		});
	}
}
